package com.appspot.gwtsimple;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * User: IRyabov
 * Date: 26.05.2011
 * Time: 17:45:43
 */
public class InitSessionServlet extends HttpServlet
{
	protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException
	{
		System.out.println("sessionId=" + request.getSession(true).getId());
		System.out.println("id=" + request.getParameter("id"));
		//Redirect call to another url
		response.sendRedirect("GwtCanvasDemo.html");
	}
}
